{% extends "base.html" %}

{% block title %}
Fluxo de Caixa
{% endblock title %}

{% block extrahead %}
$(function() {
		$('#botao_fluxo').addClass('active');
                $( "#id_data_nascimento" ).datepicker({
			changeMonth: true,
			changeYear: true,
                        dateFormat: 'dd/mm/yy',
                        yearRange: '1900:{{ano_now.year}}'
		});

	});

{% endblock extrahead %}

{% block content %}

        <div class="box-header clear">
                <h2>Fluxo de Caixa</h2>
        </div>
        
        <table class="categorias" cellspacing="1">
                <tr>
                        <th><a href="/controle_entradas"><img src="/static/images/figuras/seta_verde.png" alt="" width="200" height="200" class="picture" align="center"/></th>
                        {% if perm_admi %}
			<th><a href="/historico_entradas"><img src="/static/images/figuras/historico.jpg" alt="" width="200" height="200" class="picture" align="center" /></th>
			{% endif %}
			{% if perm_admi %}
                        <th><a href="/controle_gastos"><img src="/static/images/figuras/seta_vermelha.png" alt="" width="200" height="200" class="picture" /></th>
			{% endif %}
			{% if perm_mant %}
                        <th><a href="/controle_gastos"><img src="/static/images/figuras/seta_vermelha.png" alt="" width="200" height="200" class="picture" /></th>
			{% endif %}
		</tr>    
                <tr>	
                        <td><h2><a href="/controle_entradas"> Controle de Entradas </a><h2></td>
			{% if perm_admi %}
                        <td><h2><a href="/historico_entradas"> Histórico de Entradas </a></h2></td>
			{% endif %}
			{% if perm_mant %}
                        <td><h2><a href="/controle_gastos"> Controle de Gastos </a></h2></td>
			{% endif %}
			{% if perm_admi %}
                        <td><h2><a href="/controle_gastos"> Controle de Gastos </a></h2></td>
			{% endif %}
                </tr>
        </table>
            
{% endblock content %}
